<?php
/* SVN FILE: $Id$ */
/* MgTipoTransaccione Test cases generated on: 2009-06-06 04:06:01 : 1244280481*/
App::import('Model', 'MgTipoTransaccione');

class MgTipoTransaccioneTestCase extends CakeTestCase {
	var $MgTipoTransaccione = null;
	var $fixtures = array('app.mg_tipo_transaccione', 'app.tc_movimientos_diario');

	function startTest() {
		$this->MgTipoTransaccione =& ClassRegistry::init('MgTipoTransaccione');
	}

	function testMgTipoTransaccioneInstance() {
		$this->assertTrue(is_a($this->MgTipoTransaccione, 'MgTipoTransaccione'));
	}

	function testMgTipoTransaccioneFind() {
		$this->MgTipoTransaccione->recursive = -1;
		$results = $this->MgTipoTransaccione->find('first');
		$this->assertTrue(!empty($results));

		$expected = array('MgTipoTransaccione' => array(
			'id'  => 1,
			'descripcion'  => 'Lorem ipsum dolor sit a',
			'created'  => '2009-06-06',
			'modified'  => '2009-06-06',
			'adicionado_por'  => 'Lorem ipsum dolor ',
			'modificado_por'  => 'Lorem ipsum dolor '
			));
			$this->assertEqual($results, $expected);
	}
}
?>